package lab.gene.action;

import lab.gene.service.impl.PrimerSequenceServiceImpl;
import com.opensymphony.xwork2.ActionSupport;

public class AddGenePrimerAction extends ActionSupport {
	
	private static final long serialVersionUID = 1L;
	String geneName = null;
	String plate = null;
	String well = null;
	String primer = null;
	String sequence = null;
	
	public String execute() {
		PrimerSequenceServiceImpl service = new PrimerSequenceServiceImpl();
		System.out.println(geneName);
		System.out.println(primer);
		System.out.println(plate);
		System.out.println(well);
		System.out.println(sequence);
		if(service.addPrimer(geneName, primer, plate, well, sequence)) return "success";
		else return "error";
	}

	public String getGeneName() {
		return geneName;
	}

	public void setGeneName(String geneName) {
		this.geneName = geneName;
	}

	public String getPlate() {
		return plate;
	}

	public void setPlate(String plate) {
		this.plate = plate;
	}

	public String getWell() {
		return well;
	}

	public void setWell(String well) {
		this.well = well;
	}

	public String getPrimer() {
		return primer;
	}

	public void setPrimer(String primer) {
		this.primer = primer;
	}

	public String getSequence() {
		return sequence;
	}

	public void setSequence(String sequence) {
		this.sequence = sequence;
	}
	

}
